// source --> https://www.poloznamama.pl/wp-content/plugins/bold-page-builder/slick/slick.min.js?ver=5.4.6 /* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ Version: 1.6.0 Author: Ken Wheeler Website: http://kenwheeler.github.io Docs: http://kenwheeler.github.io/slick Repo: http://github.com/kenwheeler/slick Issues: http://github.com/kenwheeler/slick/issues */ !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()}); // source --> https://www.poloznamama.pl/wp-content/plugins/bold-page-builder/content_elements_misc/js/content_elements.js?ver=5.4.6 (function( $ ) { "use strict"; // animations window.bt_bb_animate_elements = function() { var $elems = $( '.animate:not(.animated)' ); $elems.each(function() { var $elm = $(this); if ( isOnScreen( $elm ) ) { $elm.addClass( 'animated' ); if ( $elm.hasClass( 'bt_bb_counter' ) ) { bt_bb_animate_counter( $elm ); } } }); bt_bb_lazy_load_images(); $( '.slick-slider .slick-slide:not(.slick-active) .animate' ).removeClass( 'animated' ); } // lazy image load window.bt_bb_lazy_load_images = function() { var $elems = $( 'img.btLazyLoadImage:not(.btLazyLoaded)' ); $elems.each(function() { var $elm = $(this); if ( isOnScreen( $elm, -200 ) ) { $elm.addClass( 'btLazyLoaded' ); // console.log($elm.data( 'image_src' )); $elm.attr( 'src', $elm.data( 'image_src' )); } }); var $elems = $( 'image.btLazyLoadImage:not(.btLazyLoaded)' ); $elems.each(function() { var $elm = $(this); if ( isOnScreen( $elm, -200 ) ) { $elm.addClass( 'btLazyLoaded' ); // console.log($elm.data( 'image_src' )); $elm.attr( 'xlink:href', $elm.data( 'image_src' )); } }); var $elems = $( '.btLazyLoadBackground:not(.btLazyLoaded)' ); $elems.each(function() { var $elm = $(this); if ( isOnScreen( $elm, -200 ) ) { $elm.addClass( 'btLazyLoaded' ); $elm.css( 'background-image', 'url(' + $elm.data( 'background_image_src' ) + ')' ); } }); } // isOnScreen fixed function iOSversion() { if (/iP(hone|od|ad)/.test(navigator.platform)) { // supports iOS 2.0 and later: var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); return [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)]; } else { return false; } } var ver = iOSversion(); // isOnScreen function isOnScreen( elem, top_offset ) { if ( ver && ver[0] == 13 ) return true; top_offset = ( top_offset === undefined ) ? 75 : top_offset; var element = elem.get( 0 ); if ( element == undefined ) return false; var bounds = element.getBoundingClientRect(); var output = bounds.top + top_offset < window.innerHeight && bounds.bottom > 0; // alert(output); return output; } // animate counter function bt_bb_animate_counter( elm ) { var number_length = elm.data( 'digit-length' ); for ( var i = parseInt( number_length ); i > 0; i-- ) { var digit = parseInt( elm.children( '.p' + i ).data( 'digit' ) ); if ( digit == 0 ) digit = 10; if ( isNaN( digit ) ) digit = 10; for ( var j = 0; j <= digit; j++ ) { elm.children( '.p' + i ).css( 'transform', 'translateY(-' + digit * elm[0].getBoundingClientRect().height + 'px)' ); } elm.addClass( 'animated' ); } return false; } // paralax helpers window.bt_bb_requestAnimFrame = function() { return ( window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function( callback ) { window.setTimeout( callback, 1000 / 60 ); } ); }(); window.is_edge = ( navigator.userAgent.indexOf('Edge') !== -1 ) ? true : false; window.bt_bb_raf_loop = function() { var win_w = window.innerWidth; var win_h = window.innerHeight; $( 'html:not(.bt_bb_touch) .bt_bb_parallax' ).each(function() { var bounds = this.getBoundingClientRect(); if ( bounds.top < win_h && bounds.bottom > 0 ) { var speed = $( this ).data( 'parallax' ) + 0.0001; if ( window.is_edge ) speed = - speed / 5; var offset = 0; if ( win_w > 1024 ) offset = parseFloat( $( this ).data( 'parallax-offset' ) ); var ypos = ( bounds.top ) * speed; if ( ypos > -0.5 && ypos < 0.5 ) { ypos = 0; } $( this )[0].style.backgroundPosition = '50% ' + ( ypos + offset ) + 'px'; } }); window.bt_bb_raf_lock = false; } // touch screen detect window.bt_detect_touch = function() { if (typeof window !== 'undefined') { var bt_has_touch = Boolean( 'ontouchstart' in window || window.navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0 || window.DocumentTouch && document instanceof DocumentTouch ); if ( bt_has_touch ) $('html').addClass( 'bt_bb_touch' ); } } // countdown timer helpers window.bt_bb_countdown = function( elem, selector, i, arr, arr_prev ) { if ( arr[ i ] !== arr_prev[ i ] || elem.find( selector ).children().eq( 0 ).html( ) == '' ) { elem.find( selector ).children().addClass( 'countdown_anim' ); elem.find( selector ).children().eq( 0 ).html( arr[ i ] ); elem.find( selector ).children().eq( 1 ).html( arr_prev[ i ] ); setTimeout(function() { elem.find( selector ).children().eq( 1 ).html( elem.find( selector ).children().eq( 0 ).html() ); elem.find( selector ).children().removeClass( 'countdown_anim' ); }, 300 ); } } window.bt_bb_countdown_output = function( elem ) { var s = elem.data( 'init-seconds' ); var delta = s; var days = Math.floor( delta / 86400 ); delta -= days * 86400; var hours = Math.floor( delta / 3600 ) % 24; delta -= hours * 3600; var minutes = Math.floor( delta / 60 ) % 60; delta -= minutes * 60; var seconds = delta; if ( hours < 10 ) { hours = '0' + hours; } if ( minutes < 10 ) { minutes = '0' + minutes; } if ( seconds < 10 ) { seconds = '0' + seconds; } var seconds_arr_prev = seconds.toString().split( '' ); var minutes_arr_prev = minutes.toString().split( '' ); var hours_arr_prev = hours.toString().split( '' ); s = s - 1; if ( s < 0 ) { s = 0; } var delta = s; var days = Math.floor( delta / 86400 ); delta -= days * 86400; var hours = Math.floor( delta / 3600 ) % 24; delta -= hours * 3600; var minutes = Math.floor( delta / 60 ) % 60; delta -= minutes * 60; var seconds = delta; if ( hours < 10 ) { hours = '0' + hours; } if ( minutes < 10 ) { minutes = '0' + minutes; } if ( seconds < 10 ) { seconds = '0' + seconds; } var seconds_arr = seconds.toString().split( '' ); var minutes_arr = minutes.toString().split( '' ); var hours_arr = hours.toString().split( '' ); for ( var i = 0; i <= 1; i++ ) { bt_bb_countdown( elem, '.seconds .n' + i, i, seconds_arr, seconds_arr_prev ); bt_bb_countdown( elem, '.minutes .n' + i, i, minutes_arr, minutes_arr_prev ); bt_bb_countdown( elem, '.hours .n' + i, i, hours_arr, hours_arr_prev ); } var days_prev = 0; if ( days != days_prev ) { var days_arr = days.toString().split( '' ); var days_html = ''; for ( var i = 0; i < days_arr.length; i++ ) { days_html += '' + days_arr[ i ] + ''; } elem.find( '.days' ).html( days_html + '' + elem.find( '.days' ).data( 'text' ) + '' ); } days_prev = days; elem.data( 'init-seconds', s ); } function bt_bb_fix_slider_heights(){ $( '.bt_bb_content_slider.bt_bb_height_keep-height .slick-slider' ).each(function( index ) { $( this ).find('.slick-slide').height('auto'); var slickTrack = $( this ).find('.slick-track'); var slickTrackHeight = $(slickTrack).height(); $( this ).find('.slick-slide').css('height', slickTrackHeight + 'px'); }); } function bt_bb_init_elements() { // get row structure $( '.bt_bb_section .bt_bb_row' ).each( function( index ) { var data_structure = []; $( this ).data( 'structure', "0" ); $( this ).find('.bt_bb_column').each( function( index ) { data_structure.push( $( this ).data( 'width' ) ); }); $( this ).attr( 'data-structure', data_structure.join("-") ); }); $( '.bt_bb_row_inner' ).each( function( index ) { var data_structure = []; $( this ).data( 'structure', "0" ); $( this ).find('.bt_bb_column_inner').each( function( index ) { data_structure.push( $( this ).data( 'width' ) ); }); $( this ).attr( 'data-structure', data_structure.join("-") ); }); // slick slider $( '.slick-slider' ).slick(); $( '.slick-slider .slick-prev, .slick-slider .slick-next, .slick-slider .slick-dots li' ).click(function() { $( this ).closest( '.slick-slider' ).slick( 'slickPause' ); }); $( '.bt_bb_slider.bt_bb_use_lightbox .slick-slider .bt_bb_slider_item' ).click(function() { $( this ).closest( '.slick-slider' ).slick( 'slickPause' ); }); // image slider lightbox $( '.bt_bb_slider.bt_bb_use_lightbox' ).each(function() { $( this ).magnificPopup({ delegate: '.bt_bb_slider_item', type: 'image', gallery:{ enabled: true }, callbacks: { elementParse: function( item ) { item.src = item.el.data( 'src-full' ); } }, closeBtnInside: false, fixedContentPos: false }); }); // image lightbox $( '.bt_bb_image.bt_bb_use_lightbox a' ).each(function() { $( this ).magnificPopup({ delegate: 'img', type: 'image', gallery:{ enabled: true }, callbacks: { elementParse: function( item ) { item.src = item.el.data( 'full_image_src' ); } }, closeBtnInside: false, fixedContentPos: false }); /*return false;*/ }); // force slider item equal height when keep height is active $('.bt_bb_content_slider.bt_bb_height_keep-height .slick-slider').on('setPosition', function () { bt_bb_fix_slider_heights(); }); $(window).on('resize', function(e) { bt_bb_fix_slider_heights(); }); // bt_bb_elements.js resets animated class $( '.slick-slider' ).on('beforeChange', function(event, slick, currentSlide, nextSlide){ $( this ).find( '.slick-slide .animated' ).removeClass( 'animated' ); $( this ).find( '.slick-slide[data-slick-index='+nextSlide+'] .animate' ).addClass( 'animated' ); }); // tabs $( '.bt_bb_tabs .bt_bb_tabs_header li' ).click(function() { $( this ).siblings().removeClass( 'on' ); $( this ).addClass( 'on' ); $( this ).closest( '.bt_bb_tabs' ).find( '.bt_bb_tab_item' ).removeClass( 'on' ); $( this ).closest( '.bt_bb_tabs' ).find( '.bt_bb_tab_item' ).eq( $( this ).index() ).addClass( 'on' ); }); $( '.bt_bb_tabs' ).each(function() { $( this ).find( 'li' ).first().click(); }); // parallax if ( $( 'html:not(.bt_bb_touch) .bt_bb_parallax' ).length > 0 ) { window.bt_bb_raf_lock = false; $( window ).on( 'mousewheel', function( e ) { }); $( window ).on( 'scroll', function() { if ( ! window.bt_bb_raf_lock ) { window.bt_bb_raf_lock = true; bt_bb_requestAnimFrame( bt_bb_raf_loop ); } }); bt_bb_requestAnimFrame( bt_bb_raf_loop ); $( window ).on( "load", function() { bt_bb_requestAnimFrame( bt_bb_raf_loop ); }); } // Detect touch bt_detect_touch(); // Countdown $( '.btCountdownHolder' ).each(function() { var cd = $( this ); var s = cd.data( 'init-seconds' ); bt_bb_countdown_output( cd ); setInterval(function() { bt_bb_countdown_output( cd ); }, 1000 ); }); } // google maps window.bt_bb_gmap_init = function ( map_id, zoom, custom_style ) { var myLatLng = new google.maps.LatLng( 0, 0 ); var mapOptions = { zoom: zoom, center: myLatLng, scrollwheel: false, scaleControl:true, zoomControl: true, zoomControlOptions: { style: google.maps.ZoomControlStyle.SMALL, position: google.maps.ControlPosition.RIGHT_CENTER }, streetViewControl: true, mapTypeControl: true } var mapElement = document.getElementById( map_id ); if ( mapElement ) { var map = new google.maps.Map( mapElement, mapOptions ); if ( custom_style != '' ) { var style_array = []; if ( custom_style != '' ) { style_array = JSON.parse( atob( custom_style ) ); } var customMapType = new google.maps.StyledMapType( style_array, { name: 'Custom Style' }); var customMapTypeId = 'custom_style'; map.mapTypes.set( customMapTypeId, customMapType ); map.setMapTypeId( customMapTypeId ); } var n = 0; var container = jQuery( '#' + map_id ).parent(); var locations = container.find( '.bt_bb_map_location' ); var center_map = container.data( 'center' ); if ( center_map == 'no' ) { center_map = false; } else { center_map = true; } var lat_sum = 0; var lng_sum = 0; locations.each(function() { var lat = jQuery( this ).data( 'lat' ); var lng = jQuery( this ).data( 'lng' ); var icon = jQuery( this ).data( 'icon' ); lat_sum += parseFloat(lat); lng_sum += parseFloat(lng); var myLatLng = new google.maps.LatLng( lat, lng ); var marker = new google.maps.Marker({ position: myLatLng, map: map, icon: icon, count: n }); if ( ! center_map && n == 0 ) { map.setCenter( myLatLng ); } locations.eq( 0 ).addClass( 'bt_bb_map_location_show' ); marker.addListener( 'click', function() { //map.setZoom( zoom ); //map.setCenter( marker.getPosition() ); var reload = true; if ( locations.eq( this.count ).hasClass( 'bt_bb_map_location_show' ) && !container.hasClass( 'bt_bb_map_no_overlay' ) ) reload = false; container.removeClass( 'bt_bb_map_no_overlay' ); locations.removeClass( 'bt_bb_map_location_show' ); if ( reload ) locations.eq( this.count ).addClass( 'bt_bb_map_location_show' ); }); n++; }); if ( center_map ) { var centerLatLng = new google.maps.LatLng( lat_sum / n, lng_sum / n ); map.setCenter( centerLatLng ); } } } // leaflet map init var map = null; window.bt_bb_leaflet_init = function ( map_id, zoom, max_zoom, predefined_style, scroll_wheel, custom_style, zoom_control ) { onImagesLoaded( $('#' + map_id ).parent(), function() { bt_bb_leaflet_init_late ( map_id, zoom, max_zoom, predefined_style, scroll_wheel, custom_style, zoom_control ); }); } window.bt_bb_leaflet_init_late = function ( map_id, zoom, max_zoom, predefined_style, custom_style, scroll_wheel, zoom_control ) { var lat_center = 0; var lng_center = 0; var container = jQuery( '#' + map_id ).parent(); var locations = container.find( '.bt_bb_leaflet_map_location' ); var center_map = container.data( 'center' ); if ( center_map == 'no' ) { center_map = false; } else { center_map = true; } var markerClusters = L.markerClusterGroup(); var lat_sum = 0; var lng_sum = 0; var n = 0; locations.each(function() { var lat = jQuery( this ).data( 'lat' ); var lng = jQuery( this ).data( 'lng' ); var icon = jQuery( this ).data( 'icon' ); lat_sum += parseFloat(lat); lng_sum += parseFloat(lng); if ( n == 0 ) { lat_center = lat; lng_center = lng; } locations.eq( 0 ).addClass( 'bt_bb_map_location_show' ); locations.eq( 0 ).addClass( 'bt_bb_map_location_show' ); var myIcon = L.icon({ iconUrl: icon, iconRetinaUrl: icon, iconSize: [45, 58], iconAnchor: [9, 21], popupAnchor: [0, -14] }); // console.log(lat); // console.log(lng); var m = L.marker( [ lat, lng ], { icon: myIcon, id: n, lat: lat, lng:lng } ).on("click", markerOnClick); markerClusters.addLayer( m ); n++; }); if ( center_map ) { lat_center = lat_sum / n; lng_center = lng_sum / n; } map = L.map( document.getElementById( map_id ) ).setView( [lat_center, lng_center], zoom ); var tiles_arr = []; if ( parseInt( predefined_style ) > 0 ) { tiles_arr = tiles_arr.concat( map_leaflet_source_arr[ predefined_style ] ); } if ( custom_style != '' ) { custom_style = atob(custom_style); var tmp_arr = custom_style.split('\n'); $.each( tmp_arr, function ( index, tmp ) { tiles_arr = tiles_arr.concat( [tmp.split(',')] ); } ); } $.each( tiles_arr, function ( index, tile ) { L.tileLayer( tile[0], { attribution: tile[1], maxZoom: max_zoom, subdomains: ['a','b','c'] } ).addTo( map ); } ); map.addLayer( markerClusters ); if ( scroll_wheel == '' ) { map.scrollWheelZoom.disable(); } map.removeControl(map.zoomControl); if ( zoom_control ) { L.control.zoom({ position:'topright' }).addTo(map); } function markerOnClick( e ) { var attributes = e.target.options; var id = attributes.id; var reload = true; if ( locations.eq( id ).hasClass( 'bt_bb_leaflet_map_location_show' ) && !container.hasClass( 'bt_bb_leaflet_map_no_overlay' ) ) reload = false; container.removeClass( 'bt_bb_leaflet_map_no_overlay' ); locations.removeClass( 'bt_bb_leaflet_map_location_show' ); if ( reload ) locations.eq( id ).addClass( 'bt_bb_leaflet_map_location_show' ); if ( locations.eq( id ).hasClass( 'bt_bb_map_location_show' ) && !container.hasClass( 'bt_bb_map_no_overlay' ) ) reload = false; container.removeClass( 'bt_bb_map_no_overlay' ); locations.removeClass( 'bt_bb_map_location_show' ); if ( reload ) locations.eq( id ).addClass( 'bt_bb_map_location_show' ); } } // do event if all images in container are loaded function onImagesLoaded( container, event ) { var images = container.find( '.bt_bb_leaflet_map_content img' ); var loaded = images.length; if ( loaded > 0 ) { for (var i = 0; i < images.length; i++ ) { if ( images[i].complete ) { loaded--; if ( loaded == 0 ) { event(); } } else { images[i].addEventListener( 'load', function() { loaded--; if ( loaded == 0 ) { event(); } }); } } } else { event(); } } // general init var bt_bb_init_finished = false; document.addEventListener('readystatechange', function() { if ( ! bt_bb_init_finished && ( document.readyState === 'interactive' || document.readyState === 'complete' ) ) { bt_bb_init_elements(); if( ! $('body').hasClass('bodyPreloader') ) { bt_bb_animate_elements(); } else { setTimeout( function() { bt_bb_animate_elements(); }, 5000 ); } $( window ).on( 'scroll', function() { bt_bb_animate_elements(); }); $( window ).on( 'resize', function( e ) { setTimeout( function() { var $elems = $( '.bt_bb_counter.animated' ); $elems.each(function() { var $elm = $( this ); $elm.removeClass( 'animated' ); bt_bb_animate_counter( $elm ); }); }, 1000 ); }); bt_bb_init_finished = true; } }, false); }( jQuery )); // source --> https://www.poloznamama.pl/wp-content/plugins/bold-page-builder/script_fe.js?ver=5.4.6 (function( $ ) { $( document ).ready(function() { $( '.bt_bb_fe_count' ).click(function( e ) { var order = $( this ).find( '.bt_bb_fe_count_inner' ).html(); if ( window != window.top ) { // iframe $( '.bt_bb_front_end_preview_close', window.parent.document ).click(); $( 'html, body', window.parent.document ).animate({ scrollTop: $( '.bt_bb_item_list', window.parent.document ).children().eq( order - 1 ).offset().top - $( '#wpadminbar', window.parent.document ).height() }, 500 ); } else { if ( $( this ).find( '.bt_bb_fe_count_inner' ).data( 'edit_url' ) !== undefined ) { window.location.replace( $( this ).find( '.bt_bb_fe_count_inner' ).data( 'edit_url' ) + '&bt_bb_order=' + order ); } else { window.location.replace( $( '#wp-admin-bar-edit .ab-item' ).attr( 'href' ) + '&bt_bb_order=' + order ); } } }); var bt_bb_fe_preview_toggle = localStorage.getItem( 'bt_bb_fe_preview_toggle' ); if ( bt_bb_fe_preview_toggle == 'true' || ! window.bt_bb_fe_can_edit ) { $( 'body' ).addClass( 'bt_bb_fe_preview_toggle' ); } else { $( 'body' ).removeClass( 'bt_bb_fe_preview_toggle' ); } $( '.bt_bb_fe_preview_toggler' ).on( 'click', function ( e ) { e.stopPropagation(); $( 'body' ).toggleClass( 'bt_bb_fe_preview_toggle' ); var has_class = false; if ( $( 'body' ).hasClass( 'bt_bb_fe_preview_toggle' ) ) { has_class = true; } localStorage.setItem( 'bt_bb_fe_preview_toggle', has_class ); }); }); }( jQuery )); // source --> https://www.poloznamama.pl/wp-content/themes/celeste/framework/js/modernizr.custom.js?ver=5.4.6 window.btModernizr=function(a,b,c){function C(a){j.cssText=a}function D(a,b){return C(n.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a){var e=a[d];if(!F(e,"-")&&j[e]!==c)return"pfx"==b?e:!0}return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}return!1}function I(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),H(e,b,c))}function J(){e.input=function(c){for(var d=0,e=c.length;e>d;d++)u[c[d]]=!!(c[d]in k);return u.list&&(u.list=!(!b.createElement("datalist")||!a.HTMLDataListElement)),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var e,f,h,d=0,i=a.length;i>d;d++)k.setAttribute("type",f=a[d]),e="text"!==k.type,e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&"textfield"!==h.getComputedStyle(k,null).WebkitAppearance&&0!==k.offsetHeight,g.removeChild(k)):/^(search|tel)$/.test(f)||(e=/^(url|email)$/.test(f)?k.checkValidity&&k.checkValidity()===!1:k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var x,B,d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))for(;d--;)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty;B=E(A,"undefined")||E(A.call,"undefined")?function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")}:function(a,b){return A.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=w.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(w.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(w.call(arguments)))};return d}),s.flexbox=function(){return I("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},s.canvastext=function(){return!(!e.canvas||!E(b.createElement("canvas").getContext("2d").fillText,"function"))},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!I("indexedDB",a)},s.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!(!a.history||!history.pushState)},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")},s.hsla=function(){return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")},s.multiplebgs=function(){return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return I("backgroundSize")},s.borderimage=function(){return I("borderImage")},s.borderradius=function(){return I("borderRadius")},s.boxshadow=function(){return I("boxShadow")},s.textshadow=function(){return""===b.createElement("div").style.textShadow},s.opacity=function(){return D("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return I("animationName")},s.csscolumns=function(){return I("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return C((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),F(j.backgroundImage,"gradient")},s.cssreflections=function(){return I("boxReflect")},s.csstransforms=function(){return!!I("transform")},s.csstransforms3d=function(){var a=!!I("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b){a=9===b.offsetLeft&&3===b.offsetHeight}),a},s.csstransitions=function(){return I("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var K in s)B(s,K)&&(x=K.toLowerCase(),e[x]=s[K](),v.push((e[x]?"":"no-")+x));return e.input||J(),e.addTest=function(a,b){if("object"==typeof a)for(var d in a)B(a,d)&&e.addTest(d,a[d]);else{if(a=a.toLowerCase(),e[a]!==c)return e;b="function"==typeof b?b():b,"undefined"!=typeof f&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},C(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=n(c));var g;return g=d.cache[a]?d.cache[a].cloneNode():f.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!g.canHaveChildren||e.test(a)||g.tagUrn?g:d.frag.appendChild(g)}function p(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||n(a);for(var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;g>e;e++)d.createElement(f[e]);return d}function q(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?o(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b);var c=n(a);return!s.shivCSS||g||c.hasCSS||(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var g,k,c="3.7.0",d=a.html5||{},e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",i=0,j={};!function(){try{var a=b.createElement("a");a.innerHTML="",g="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){g=!0,k=!0}}();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.hasEvent=z,e.testProp=function(a){return G([a])},e.testAllProps=I,e.testStyles=y,e.prefixed=function(a,b,c){return b?I(a,b,c):I(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var A,B,l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};B=function(a){function b(a){var e,f,g,a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a};for(f=0;d>f;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;b>f;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var c,b=0;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var m,n,h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i